package org.nobody.mallb2c.mallproduct.feign;

import org.nobody.common.utils.R;
import org.nobody.mallb2c.mallproduct.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-28-19:02
 */
@FeignClient(value = "mall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
  @GetMapping("/sku/seckill/{skuId}")
  public R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
